package com.taller.springsocial.controller;

import java.util.List;

import org.springframework.social.facebook.api.Facebook;
import org.springframework.social.facebook.api.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(value="/facebook")
@Controller
public class SocialController {
	
	private Facebook facebook;
	
	@RequestMapping(value="/amigos")
	public List<Reference> listaDeAmigos(){
		return facebook.friendOperations().getFriendLists();
	}

}
